package com.qin.mall.exception;

import com.qin.mall.result.IErrorCode;

/**
 * 断言处理类，用于抛出各种API异常
 * @author Leisure
 * create 2022 2022/11/11 10:48
 **/
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }

}
